#include "AnimationState.h"
#include <SECore/Util.h>

#include <SEDebug/Log/Log.h>

namespace SEngine
{
    AnimationState::AnimationState()
        : State(), AnimationClip()
    {   
    }

    void AnimationState::OnEntry()
    {
        m_frame = 0;
    }

    void AnimationState::OnExit()
    {
    }

    void AnimationState::OnState()
    {
        Log::GetInstance().Debug("dasda");
        if (m_frame >= 3) {
            SignalGotoNextState.Invoke();
        }
        m_frame++;
    }
}